<template>
  <div id="app">
    {{ num }}
    <!-- <Test :age="age" @updateAge="age = $event" /> -->
    <!-- <Test :age="age" @update:age="age = $event" /> -->
    <!-- 和上面等价 -->
    <Test :age.sync="age" :num.sync="num" />
  </div>
</template>

<script>
import Test from './Test.vue'
export default {
  name: 'App',
  components: {
    Test
  },
  data() {
    return {
      age: 19,
      num: 9
    }
  }
}
</script>
